import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/login')
  },
  {
    path: '/',
    name: 'yindao',
    component: () => import('@/views/yindao')
  },
  {
    path: '/qidong',
    name: 'qidong',
    component: () => import('@/views/qidong')
  },
  {
    path: '/user',
    name: 'user',
    component: () => import('@/views/user'),
    children:[
      {
        path:'/shouye',
        name:'shouye',
        component: () => import('@/views/shouye')
      },
      {
        path:'/wode',
        name:'wode',
        component: () => import('@/views/wode')
      },
      {
        path:'/shancheng',
        name:'shancheng',
        component: () => import('@/views/shancheng/index.vue')    
      },
      {
        path:'/liwu',
        name:'liwu',
        component: () => import('@/views/shancheng/liwu/index.vue')
      },
      {
        path:'/info',
        name:'info',
        component: () => import('@/views/shancheng/liwu/info.vue')
      },
      {
        path:'/gouwuche',
        name:'gouwuche',
        component: () => import('@/views/gouwuche')
      },
      {
        path:'/laiotian',
        name:'laiotian',
        component: () => import('@/views/gouwuche/compon/laiotian.vue')
      },
      {
        path:'/fabu',
        name:'fabu',
        component: () => import('@/views/fabu')
      },
      {
        path:'/tuijian',
        name:'tuijian',
        component: () => import('@/views/shancheng/liwu/tuijian.vue')
      },
      {
        path:'/liebiao',
        name:'liebiao',
        component: () => import('@/views/shancheng/liwu/liebiao.vue')
      },
      {
        path:'/cainixihuan',
        name:'cainixihuan',
        component: () => import('@/views/shancheng/liwu/cainixihuan.vue')
      },
      {
        path:'/user-info',
        name:'user-info',
        component: () => import('@/views/wode/compom/user-info.vue')
      },
      {
        path:'/faxian',
        name:'faxian',
        component: () => import('@/views/wode/compom/faxian.vue')
      },
      {
        path:'/xinxi',
        name:'xinxi',
        component: () => import('@/views/gouwuche/compon/xinxi.vue')
      },
      {
        path: '/shezhi',
        name: 'shezhi',
        component: () => import('@/views/shouye/shezhi/index.vue')
      },
      {
        path: '/neikong',
        name: 'neikong',
        component: () => import('@/views/shouye/shezhi/neikong.vue')
      },
      {
        path: '/null',
        name: 'null',
        component: () => import('@/views/shouye/shezhi/null.vue')
      },
      {
        path: '/zhanshi',
        name: 'zhanshi',
        component: () => import('@/views/shouye/shezhi/zhanshi.vue')
      },
      {
        path: '/zhanwu',
        name: 'zhanwu',
        component: () => import('@/views/shouye/shezhi/zhanwu.vue')
      }
      
    ]
  }
]

const router = new VueRouter({
  routes
})

export default router
